import axios from './request'

// 管理所有的接口请求

// 调用轮播图接口
export const getBanner = () => {
  return axios.get('/api/recommendPage/node/spread/575f74f27a4a60dc78a435a3?pl=ios')
}

// 分类接口
export const getClassify = () => {
  return axios.get('/api/cats/lv2/statistics')
}

// 同类书推荐
export const recommend = id => {
  return axios.get(`/api/book/${id}/recommend`)
}

// 自动补全搜索
export const autoComplete = text => {
  return axios.get(`/api/book/auto-complete?query=${text}`)
}


  
